<?php
//user_id是否为空；若为空，则返回商城注册ye
if(empty($_SESSION['user_id']) ||  empty($_SESSION['openid'])){
	 
	 $url="http://haining.365jinbi.com/lxtx/mobile/index.php?m=default&c=user&a=login";

	if($_SESSION['lv_user_act']) $url.="&lv_user_act=".$_SESSION['lv_user_act'];
	else if($_SESSION['id_difang'])$url.="&lv_user_act=".$_SESSION['id_difang'];

	echo "<SCRIPT>window.location.href='$url';</SCRIPT>";
}
//js函数
?>